<template>
  <div class="project-search-layout">
    <div class="project-search-input">
      <el-input placeholder="请选择城市" icon="search" v-model="input2" :on-icon-click="citySearch"></el-input>
    </div>
    <ul class="porject-city-list">
      <li v-for="(item,index) in cityMsg">{{item.cityName}}</li>
    </ul>
    <div class="project-search-more">
      <i class="el-icon-more"></i>
    </div>
  </div>
</template>
<script>
  import { mapState } from 'vuex'
  export default {
    data () {
      return {
        input2: ''
      }
    },
    computed: {
      ...mapState(['cityMsg'])
    },
    methods: {
      citySearch (ev) {
        console.log(ev)
      }
    }
  }
</script>
